<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>
    <link href="./lib/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/publicheader.css">
    <link rel="stylesheet" href="./css/publicfooter.css">
    <link rel="stylesheet" href="./css/index.css">
    <!-- [if lt IE 9]>
      <script src="./lib/html5shiv/html5shiv-printshiv.min.js></script>
      <script src="./lib/respond/respond.js"></script>
    <![endif] -->
</head>

<body>
    <!-- 头部 -->
    <div class="header">
        <div class="container-fluid">
            <div class="row">
                <div class="col-xs-10 leftlogo">
                    <a href="javascript:;"></a>
                </div>
                <div class="col-xs-2 rightapp">
                    <a href="javascript:;"></a>
                </div>
            </div>
        </div>
    </div>
    <!-- 搜索栏 -->
    <div class="search">
        <div class="lefttext">
            <input type="search" placeholder="请输入你想比价的商品">
            <button>搜索</button>
        </div>

    </div>
    <div class="layout">
        <div class="menu_bar">
        </div>
        <div class="recommend">
            <div class="titleRecommend">
                <h3>超值折扣推荐</h3>
                <span class="glyphicon glyphicon-menu-right"></span>
            </div>
        </div>
        <div class="moreDiscounts">
            <a href="./page/moneyctrl.html">
                更多优惠信息&nbsp;&nbsp;>>
            </a>
        </div>
    </div>
     <!-- 底部 -->
     <div class="footer">
        <div class="container-fluid">
            <div class="row">
                <ul class="footerList">
                    <li class="col-xs-4">
                        <a href="javascript:;">
                            登录
                        </a>
                    </li>
                    <li class="col-xs-4">
                        <a href="javascript:;">
                            注册
                        </a>
                    </li>
                    <li class="col-xs-4">
                        <a href="javascript:;">
                            <span class="glyphicon glyphicon-arrow-up"></span>
                            返回顶部
                        </a>
                    </li>
                </ul>
                <p>
                    <a href="javascript:;">
                        <span>
                            手机app下载
                        </span>
                    </a>&nbsp;&nbsp;&nbsp;
                    <a href="javascript:;">
                        <span>
                            慢慢手机版下载
                        </span>
                        <span>
                            --掌上比价平台
                        </span>
                    </a>
                </p>
                <p>m.manmanbuy.com</p>
            </div>
        </div>
    </div>
    <!-- 头部菜单模版 -->
    <script type="text/template" id="menu_barTemp">
        <%for(var i=0; i<result.length; i++){ %>
            <%if(i>1){%>
                <ul style="display:none;">
              <%for(var j=0; j<result[i].length; j++){ %>
                <li>
            <a href="./page/<%=result[i][j].titlehref%>" data-id="<%=result[i][j].indexmenuId%>">
                {{# result[i][j].img}}
                <p><%=result[i][j].name%></p>
            </a> 
           </li>
            <% }%>
         </ul> 
           <% }else{ %>
            <ul>
                    <%for(var j=0; j<result[i].length; j++){ %>
                      <li>
                  <a href="./page/<%=result[i][j].titlehref%>" data-id="<%=result[i][j].indexmenuId%>">
                      {{# result[i][j].img}}
                      <p><%=result[i][j].name%></p>
                  </a> 
                 </li>
                  <% }%>
               </ul> 
          <% } %>
            
       <% }%>
    </script>
    <!-- 超值折扣推荐部分模版 -->
    <script type="text/template" id="recommendTemp">
        <%for(var i=0; i<result.length; i++){ %>
            <div class="productRecommend">
                <a href="javascript:;" class="productLeft">
                    <%=#result[i].productImgSm%>
                </a>
                <div class="productRight">
                    <a href="./page/discount.html?id=<%=result[i].productId%>">
                        <%=result[i].productName%>
                        <span><%=result[i].productPinkage%></span>
                    </a>
                    <span>
                        <a href="javascript:;">
                            <span><%=result[i].productFrom%></span> |
                            <span><%=result[i].productTime%></span>
                        </a>
                        <a href="javascript:;" class="glyphicon glyphicon-edit"><%=result[i].productComCount%></a>
                    </span>
                </div>
            </div>
       <% }%>
    </script>
    <script src="./lib/jquery/jquery.js"></script>
    <script src="./lib/bootstrap/js/bootstrap.js"></script>
    <script src="./zepto1/src/zepto.min.js"></script>
    <script src="./zepto1/src/fx.js"></script>
    <script src="./zepto1/src/touch.js"></script>
    <script src="./js/backtop.js"></script>
    <script src="./js/template-web.js"></script>
    <script src="./js/index.js"></script>
</body>
</html>